﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Xoohoo.Validation.Attributes
{
    public class VirtualFolderAttribute : ModelClientValidationRegularExpressionAttribute
    {
        /// <summary>
        /// 虚拟根路径,如 ~/WebSite/abc/123
        /// </summary>
        public VirtualFolderAttribute() : base(@"^~(/[a-zA-Z0-9-_]+)+$") { }
    }
}
